﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HtmlFileDownloader.DataBinding
{
    public class PersonService
    {
        public List<Person> GetPersonList()
        {
            Person elizabeth = new Person(1, "Elizabeth Brown", "Sales Representative", "London");
            Person maria = new Person(2, "Maria Anders", "Owner", "Berlin");
            Person thomas = new Person(3, "Thomas Hardy", "Sales Representative", "London");
            Person yang = new Person(4, "Yang Wang", "Sales Representative", "Bern");
            List<Person> personList = new List<Person>();
            personList.Add(elizabeth);
            personList.Add(maria);
            personList.Add(thomas);
            personList.Add(yang);
            return personList;
        }
    }
    public class Person
    {
        private int _id;
        private string _fullName;
        private string _title;
        private string _city;

        public Person(int id, string fullName, string title, string city)
        {
            _id = id;
            _fullName = fullName;
            _title = title;
            _city = city;
        }

        public string City
        {
            get { return _city; }
            set { _city = value; }
        }
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string FullName
        {
            get { return _fullName; }
            set { _fullName = value; }
        }
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

    }
}
